#pragma once
// -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
//   File Name: cursor_session.h
// Description: CursorSession Class
//      Author: Ziming Li
//     Created: 2022-05-03
// -------------------------------------------------
// Copyright (C) 2022 MingYang Software Technology.
// -------------------------------------------------

#ifndef BLINKIT_CURSOR_SESSION_H
#define BLINKIT_CURSOR_SESSION_H

#include "blinkit/blink/public/platform/web_cursor_info.h"

namespace BlinKit {

class CursorSession
{
public:
    CursorSession(void);
    ~CursorSession(void);

    bool ProcessSetCursorMessage(WPARAM wParam, LPARAM lParam, LRESULT &result);
    void Update(const WebCursorInfo &cursorInfo);
private:
    WebCursorInfo::Type m_cursorType = WebCursorInfo::TypePointer;
    HCURSOR m_hCursor;
};

} // namespace BlinKit

#endif // BLINKIT_CURSOR_SESSION_H
